/*
 * @(#)IHEServiceType.java
 * Date 2014-01-16
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.ihecommon.config;

import org.apache.commons.lang3.StringUtils;

import us.hornerscorners.lamppost.config.IServiceType;


/**
 * Enum description
 *
 */
public enum IHEServiceType implements IServiceType {

    Registry, Repository, PIX, PDQ, XCA;

    /**
     * Method description
     *
     *
     * @return
     */
    @Override
    public String getTypeName() {

        return name();
    }

    /**
     * Method description
     *
     *
     * @param type
     *
     * @return
     */
    @Override
    public boolean isSameType(IServiceType type) {

        return StringUtils.equals(getTypeName(), type.getTypeName());
    }
}
